﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.MaterialVMs
{
    public partial class MaterialBatchVM : BaseBatchVM<Material, Material_BatchEdit>
    {
        public MaterialBatchVM()
        {
            ListVM = new MaterialListVM();
            LinkedVM = new Material_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class Material_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._Material._MaterialType")]
        public string MaterialType { get; set; }
        [Display(Name = "_Model._Material._MaterialName")]
        public string MaterialName { get; set; }
        [Display(Name = "_Model._Material._MaterialVersion")]
        public string MaterialVersion { get; set; }
        [Display(Name = "_Model._Material._MeasureUnitCode")]
        public string MeasureUnitCode { get; set; }
        [Display(Name = "_Model._Material._Regular")]
        public string Regular { get; set; }
        [Display(Name = "_Model._Material._ShipRegular")]
        public string ShipRegular { get; set; }
        [Display(Name = "_Model._Material._MachineStatus")]
        public BaseStatusEnum? MachineStatus { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}